-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cubic splines overhaul #10701
Cubic splines overhaul #10701
Conversation
The only thing left is documentation for the new types and methods, I think |
Ok, the
|
Like I said on Discord, I'd like to leave the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy with this now. Excellent work, and thanks for your patience. I'd like to see more learning materials / examples for this area of the engine, but that can definitely be done in follow-up.
Co-authored-by: Joona Aalto <[email protected]>
Initial release notes for the Cubic Splines overhaul PR.
Initial release notes for the Cubic Splines overhaul PR.
Objective
Improve the
bevy::math::cubic_splines
module by making it more flexible and adding new curve types.Closes #10220
Solution
Added new spline types and improved existing
Changelog
Added
CubicNurbs
rational cubic curve generator, allows setting the knot vector and weights associated with every pointLinearSpline
curve generator, allows generating a linearly interpolated curve segmentCubicCurve
IntoIterator
andExtend
implementations forCubicCurve
Changed
Point
trait has been implemented for more types:Quat
andVec4
.CubicCurve::coefficients
was moved toCubicSegment::coefficients
because the function returnsCubicSegment
, so it seems logical to be associated withCubicSegment
instead. The method is still not public.Fixed
CubicBSpline::new
was referencing Cardinal spline instead of B-Spline